package command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import flash.errors.IllegalOperationError;
	
	import mx.controls.Alert;
	import mx.rpc.IResponder;

	public class BaseCommand implements ICommand, IResponder
	{
        

		
		public function execute(event:CairngormEvent):void{
			doExecute(event);
		}
		
		public function doExecute(event:CairngormEvent):void{
			throw new IllegalOperationError("Abstract function must be overriden");
		}
		
		public function result(data:Object):void{
			doResult(data);		
		}
		
		public function doResult(data:Object):void{
			throw new IllegalOperationError("Abstract function must be overriden");
		}
		
		public function doInvalidDelete():void{
			
		}
		
		public function fault(info:Object):void{
				doFault(info);			
		}

		public function doFault(info:Object):void{
			throw new IllegalOperationError("Abstract function must be overriden");
		}
	
		
	}
}
